package hospital.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import hospital.model.user.Patient;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author
 * @description:
 */

public interface PatientService extends IService<Patient> {
    // 通过userid获取就诊人列表
    List<Patient> findAllByUserId(Long userId);

    //通过就诊人的id获取，就诊人的信息
    Patient getPatientInfo(Long id);

    //根据就诊人id获取就诊人信息
    Patient getPatientOrder(Long id);
}
